package com.zerone.pay.trade.web;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

/**
 * Created by tyongfu@yiji.com on 2015/12/13.
 */
public class AccessTokenResult implements Serializable {

    private String accessToken;

    /**
     * 超时时间
     */
    private String expiresIn;

    private String refreshToken;

    private String openId;

    private String scope;

    private String unionId;

    @JSONField(name = "access_token")
    public String getAccessToken() {
        return accessToken;
    }

    @JSONField(name = "access_token")
    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    @JSONField(name = "expires_in")
    public String getExpiresIn() {
        return expiresIn;
    }

    @JSONField(name = "expires_in")
    public void setExpiresIn(String expiresIn) {
        this.expiresIn = expiresIn;
    }

    @JSONField(name = "refresh_token")
    public String getRefreshToken() {
        return refreshToken;
    }

    @JSONField(name = "refresh_token")
    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    @JSONField(name = "openid")
    public String getOpenId() {
        return openId;
    }

    @JSONField(name = "openid")
    public void setOpenId(String openId) {
        this.openId = openId;
    }

    @JSONField(name = "scope")
    public String getScope() {
        return scope;
    }
    @JSONField(name = "scope")
    public void setScope(String scope) {
        this.scope = scope;
    }

    @JSONField(name = "unionid")
    public String getUnionId() {
        return unionId;
    }

    @JSONField(name = "unionid")
    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }
}
